package test2;

public class StringEqualTest {
	 public static void main(String[] args) {
	        String s1 = "Programming";
	        String s4 = "Programming";
	        String s2 = new String("Programming");
	        String s3 = "Program" + "ming";
	        System.out.println(s1 == s4);
	        System.out.println(s1 == s2);
	        System.out.println(s1 == s3);
	        System.out.println(s1 == s1.intern());
	    }
}
